package xinlang_regester.New;
public class User {
    String userName;//用户名
    String password;//密码
    String birthday;//生日
    String phoneNum;//手机号码
    String Email;//邮箱
    public User() {
    }
    public User(String userName) {
        this.userName = userName;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String username) {
        this.userName = username;
    }
    public int hashCode() {
        return userName.hashCode();
    }
    public boolean equals(Object obj) {//判断是否为同一个对象
        if (this == obj) {//为同一个对象
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        User other = (User) obj;
        return userName.equals(other.userName);
    }
}
